<?php 
$student = $exam_result->getStudent(null);
echo $student->getStdFirstName() . " " . $student->getStdLastName(); ?>